﻿<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../helpproject.xsl" ?>
<topic template="Default" lasteditedby="Geert" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../helpproject.xsd">
  <title translate="true">Using the code snippets</title>
  <keywords>
    <keyword translate="true">Code snippets</keyword>
    <keyword translate="true">Snippets</keyword>
  </keywords>
  <body>
    <header>
      <para styleclass="Heading1"><text styleclass="Heading1" translate="true">Using the code snippets</text></para>
    </header>
    <para styleclass="Notes"><text styleclass="Notes" translate="true">To use the code snippets, simply install the </text><link displaytype="text" defaultstyle="true" type="topiclink" href="SDP_Setup_package" styleclass="Notes" translate="true">Setup package</link></para>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">This part of the documentation explains all the code snippets.</text></para>
    <para styleclass="Normal"><table styleclass="Default" rowcount="10" colcount="2">
      <tr style="vertical-align:top">
        <td style="width:201px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" style="font-weight:bold;" translate="true">Code snippet</text></para>
        </td>
        <td style="width:433px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" style="font-weight:bold;" translate="true">Explanation</text></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="width:201px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">modelobject</text></para>
        </td>
        <td style="width:433px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">Defines a model using the </text><link displaytype="text" defaultstyle="true" type="topiclink" href="T_Catel_Data_ModelBase" styleclass="Normal" translate="true">ModelBase</link><text styleclass="Normal (list)" translate="true"> class.</text></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="width:201px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">modelprop</text></para>
        </td>
        <td style="width:433px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">Defines a new property on a model class.</text></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="width:201px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">modelpropchanged</text></para>
        </td>
        <td style="width:433px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">Defines a new property with change notification on a model class.</text></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="width:201px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">vm</text></para>
        </td>
        <td style="width:433px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">Defines a new view model.</text></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="width:201px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">vmcommand</text></para>
        </td>
        <td style="width:433px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">Defines a new view model command with only an executed action.</text></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="width:201px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">vmcommandwithcanexecute</text></para>
        </td>
        <td style="width:433px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">Defines a new view model command with an executed action, but also a canexecute function.</text></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="width:201px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">vmprop</text></para>
        </td>
        <td style="width:433px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">Defines a new property on a view model.</text></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="width:201px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">vmpropmodel</text></para>
        </td>
        <td style="width:433px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">Defines a new property on a view model and decorates it with the </text><link displaytype="text" defaultstyle="true" type="topiclink" href="T_Catel_MVVM_ModelAttribute" styleclass="Normal (list)" translate="true">ModelAttribute</link><text styleclass="Normal (list)" translate="true">.</text></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="width:201px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">vmpropviewmodeltomodel</text></para>
        </td>
        <td style="width:433px;">
          <para styleclass="Normal (list)"><text styleclass="Normal (list)" translate="true">Defines a new property on a view model and decorates it with the </text><link displaytype="text" defaultstyle="true" type="topiclink" href="T_Catel_MVVM_ViewModelToModelAttribute" styleclass="Normal (list)" translate="true">ViewModelToModelAttribute</link><text styleclass="Normal (list)" translate="true">.</text></para>
        </td>
      </tr>
    </table></para>
  </body>
</topic>
